package org.blog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "文章点赞表")
@TableName(value = "blog_essay_like")
public class BlogEssayLike {
    @ApiModelProperty(value = "文章点赞表主键")
    @TableField(value = "id")
    private String id;

    @ApiModelProperty(value = "文章id")
    @TableField(value = "essay_id")
    private String essayId;

    @ApiModelProperty(value = "用户id")
    @TableField(value = "user_id")
    private String userId;

    @ApiModelProperty(value = "点赞时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "like_time")
    private Date likeTime;
}

